package LeetCode;

public class LC_237_DeleteNodeinaLinkedList {

    public static void main(String[] args) {

    }

    static class Solution {
        public void deleteNode(ListNode node) {
            if (node.next != null) {
                node.val = node.next.val;
                node.next = node.next.next;
            }
        }

    }
}